package com.etc.delivery.entity;

import org.springframework.stereotype.Component;

@Component
public class Address {

    private Integer id;

    private String name;

    private String higherId;

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", higherId='" + higherId + '\'' +
                '}';
    }

    public Address(Integer id, String name, String higherId) {
        this.id = id;
        this.name = name;
        this.higherId = higherId;
    }

    public Address() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHigherId() {
        return higherId;
    }

    public void setHigherId(String higherId) {
        this.higherId = higherId;
    }
}
